package stage.dao.impl;

import org.hibernate.Session;

import stage.dao.HistoricalInfoDAO;
import stage.pojo.HistoricalInfo;
/**
 * one historical info DAO implement. 
 * @author remi liu(Liu Zhibin)
 * @version 0.0
 */
public class HistoricalInfoDAOImpl implements HistoricalInfoDAO{
	@Override
	public void save(Session sess,HistoricalInfo h){
		sess.save(h);
	}

	@Override
	public void delete(Session sess, HistoricalInfo h) {
		sess.delete(h);	
	}

	@Override
	public void delete(Session sess, int id) {
		sess.delete(sess.get(HistoricalInfo.class, new Integer(id)));
	}

	@Override
	public void update(Session sess, HistoricalInfo h) {
		sess.update(h);	
	}
}
